package com.asion.qkan.ui.contract;

import com.asion.qkan.entry.NewBean;
import com.asion.qkan.ui.model.BaseModel;
import com.asion.qkan.ui.presenter.BasePresenter;
import com.asion.qkan.ui.view.BaseView;

/**
 * Created by Administrator on 2016/10/17 0017.
 */

public interface SheQuNewContract {

    interface Model extends BaseModel {
        //定义model中的需要方法 以接口形式
        void getSheNewQuListDatas(int type,SheQuNewContract.OnSheQuNewGetListener onSheQuGetListener);
    }

    interface View extends BaseView<NewBean.DataBean> {
        //定义view中需要的接口
        //baseView<T> 可指定你要用的Entry返回数据
    }

    abstract class Presenter extends BasePresenter<SheQuNewContract.View,SheQuNewContract.Model> {
        //定义presenter需要的方法
        public abstract  void setSheNewQuDatas(int type);
    }

    interface OnSheQuNewGetListener{
        void onSheQuSuccess(NewBean.DataBean bean);
        void onSheQuError(Throwable t);
    }
}
